package com.corn.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

/**
 * @author : Jim Wu
 * @version 1.0
 * @function :
 * @since : 2021/5/11 11:56
 */

@Repository
public class SlowQueryDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    public void slow() {
        jdbcTemplate.queryForList("SELECT sleep(4) FROM dual;");
    }
}
